package practicebot;

import robocode.Robot;
import robocode.ScannedRobotEvent;

/**
 *
 * @author Mark
 */
public class PracticeBot extends Robot{
    
    @Override
    public void run(){
        while(true) {
            ahead(100);
            turnGunRight(360);
            back(100);
            turnGunRight(360);
        }
    }
    
    @Override
    public void onScannedRobot(ScannedRobotEvent e) {
        fire(1);
    }
}
